package BUS;

import java.io.Serializable;

import DTO.TableDTO;

public class DataPackageFromServer implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 9104636806855095882L;

	public enum DATA_ID{
		MESSAGE,
		RESULT
	}
	
	private DATA_ID _id;
	private TableDTO _tableResult;
	private String _message;
	
	public DataPackageFromServer(DATA_ID id, TableDTO table, String message){
		set_id(id);
		set_tableResult(table);
		set_message(message);
	}

	public void set_id(DATA_ID _id) {
		this._id = _id;
	}

	public DATA_ID get_id() {
		return _id;
	}

	public void set_tableResult(TableDTO _tableResult) {
		this._tableResult = _tableResult;
	}

	public TableDTO get_tableResult() {
		return _tableResult;
	}

	public void set_message(String _message) {
		this._message = _message;
	}

	public String get_message() {
		return _message;
	}
}
